﻿package com.example.demo.dao
import com.example.demo.dbmodels.*
import me.liuwj.ktorm.schema.*
import java.math.BigDecimal
/**
 *  病人费用信息
 **/
object TChargeDao : Table<TCharge>("t_charge"){
	var id = int("id").primaryKey().bindTo { it.id }
	/**
	 *  病人代码
	 **/
	var patient_code = varchar("patient_code").bindTo { it.patient_code }
	/**
	 *  住院号
	 **/
	var patient_cure_no = varchar("patient_cure_no").bindTo { it.patient_cure_no }
	/**
	 *  总使用费用
	 **/
	var all_charge = decimal("all_charge").bindTo { it.all_charge }
	/**
	 *  费用天数
	 **/
	var charge_days = int("charge_days").bindTo { it.charge_days }
	/**
	 *  交后余下费用
	 **/
	var balence = decimal("balence").bindTo { it.balence }
	/**
	 *  服务费
	 **/
	var service_fee = decimal("service_fee").bindTo { it.service_fee }
	/**
	 *  操作费
	 **/
	var op_fee = decimal("op_fee").bindTo { it.op_fee }
	/**
	 *  护理费
	 **/
	var nursing_fee = decimal("nursing_fee").bindTo { it.nursing_fee }
	/**
	 *  病理诊断费
	 **/
	var pathological_diagnosis_fee = decimal("pathological_diagnosis_fee").bindTo { it.pathological_diagnosis_fee }
	/**
	 *  Lis诊断费
	 **/
	var lis_diagnose_fee = decimal("lis_diagnose_fee").bindTo { it.lis_diagnose_fee }
	/**
	 *  临床诊断费
	 **/
	var clinical_diagnose_fee = decimal("clinical_diagnose_fee").bindTo { it.clinical_diagnose_fee }
	/**
	 *  影像学诊断费
	 **/
	var imaging_diagnose_fee = decimal("imaging_diagnose_fee").bindTo { it.imaging_diagnose_fee }
	/**
	 *  康复费
	 **/
	var recovery_fee = decimal("recovery_fee").bindTo { it.recovery_fee }
	/**
	 *  中医治疗费
	 **/
	var chinese_treatment_fee = decimal("chinese_treatment_fee").bindTo { it.chinese_treatment_fee }
	/**
	 *  中成药费
	 **/
	var chinese_madicine_fee = decimal("chinese_madicine_fee").bindTo { it.chinese_madicine_fee }
	/**
	 *  西药费
	 **/
	var western_madicine_fee = decimal("western_madicine_fee").bindTo { it.western_madicine_fee }
	/**
	 *  中基药费
	 **/
	var base_madicine_fee = decimal("base_madicine_fee").bindTo { it.base_madicine_fee }
	/**
	 *  血费
	 **/
	var blood_fee = decimal("blood_fee").bindTo { it.blood_fee }
	/**
	 *  耗材费
	 **/
	var material_fee = decimal("material_fee").bindTo { it.material_fee }
	/**
	 *  其它费用
	 **/
	var qt_fee = decimal("qt_fee").bindTo { it.qt_fee }
	/**
	 *  收费类型: 居民医保,职工医保,自费
	 **/
	var fee_type = varchar("fee_type").bindTo { it.fee_type }
	/**
	 *  更新时间
	 **/
	var update_time = datetime("update_time").bindTo { it.update_time }
	/**
	 *  更新人
	 **/
	var update_by = int("update_by").bindTo { it.update_by }
	/**
	 *  删除标记
	 **/
	var is_del = boolean("is_del").bindTo { it.is_del }
}
